package ru.inse.core.dao.realty;

import ru.inse.core.dao.InseQueryParam;


/**
 * Command объект для параметров поиска
 * @author evga
 *
 */
public class RealtyQueryParam
    extends InseQueryParam
{
    public static final String KEY_PLACE_NAME = "placeName";
    public static final String KEY_LO_PRICE = "loPrice";
    public static final String KEY_HI_PRICE = "hiPrice";
    public static final String KEY_LO_AREA = "loArea";
    public static final String KEY_HI_AREA = "hiArea";
    public static final String KEY_LO_I1 = "loI1";
    public static final String KEY_HI_I1 = "hiI1";
    public static final String KEY_LO_I2 = "loI2";
    public static final String KEY_HI_I2 = "hiI2";

    public String getPlaceName()
    {
        return getString(KEY_PLACE_NAME, null);
    }

    public void setPlaceName(String placeName)
    {
        putValue(KEY_PLACE_NAME, placeName);
    }

    public Integer getLoPrice()
    {
        return getInt(KEY_LO_PRICE, null);
    }

    public void setLoPrice(Integer loPrice)
    {
        putValue(KEY_LO_PRICE, loPrice);
    }

    public Integer getHiPrice()
    {
        return getInt(KEY_HI_PRICE, null);
    }

    public void setHiPrice(Integer hiPrice)
    {
        putValue(KEY_HI_PRICE, hiPrice);
    }

    public Integer getLoArea()
    {
        return getInt(KEY_LO_AREA, null);
    }

    public void setLoArea(Integer loArea)
    {
        putValue(KEY_LO_AREA, loArea);
    }

    public Integer getHiArea()
    {
        return getInt(KEY_HI_AREA, null);
    }

    public void setHiArea(Integer hiArea)
    {
        putValue(KEY_HI_AREA, hiArea);
    }

    public Integer getLoI1()
    {
        return getInt(KEY_LO_I1, null);
    }

    public void setLoI1(Integer loI1)
    {
        putValue(KEY_LO_I1, loI1);
    }

    public Integer getHiI1()
    {
        return getInt(KEY_HI_I1, null);
    }

    public void setHiI1(Integer hiI1)
    {
        putValue(KEY_HI_I1, hiI1);
    }

    public Integer getLoI2()
    {
        return getInt(KEY_LO_I2, null);
    }

    public void setLoI2(Integer loI2)
    {
        putValue(KEY_LO_I2, loI2);
    }

    public Integer getHiI2()
    {
        return getInt(KEY_HI_I2, null);
    }

    public void setHiI2(Integer hiI2)
    {
        putValue(KEY_HI_I2, hiI2);
    }
}
